/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nai365.nart.common.core.util.R;
import com.nai365.nart.member.dto.*;
import com.nai365.nart.member.entity.Member;
import com.nai365.nart.member.entity.WalletChange;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * 会员
 *
 * @author baogs
 * @date 2022-07-01 10:52:57
 */
public interface MemberService extends IService<Member> {

	public Member findMemberByPhone(String phone);

	Object updateMemberIsVerify(ChainVerifyUserDto chainVerifyUserDto);

	/**
	 * 根据id列表查询会员信息
	 *
	 * @param ids 会员id列表
	 * @return List<SimpleMemberDto>
	 * @see SimpleMemberDto
	 */
	List<SimpleMemberDto> findByIds(Collection<Serializable> ids);

	Boolean setPayPass(PayPassDto payPassDto);

	//Boolean payVerifyPass(PayPassDto payPassDto);

	R<Boolean> payByRemainder(RemainderDto remainderDto);

	Member findCoinAdress(Long merberId);
}
